<div class="text-center">

    {if !empty($data->foto) and file_exists($pathRoot|cat:"/public/uploads/profile/{$data->foto}")}
        {assign var=path_foto value=$url|cat:"/public/uploads/profile/{$data->foto}"}
    {else}
        {assign var=path_foto value=$img|cat:"/avatar5.png"}
    {/if}

    <img src="{$path_foto}" class="img-circle img-default" alt="User Image" />

</div>

<div class="form-group text-center">
    <span class="btn btn-flat btn-success btn-file">Selecione sua foto
        <input type="file" name="foto" title="Alterar Foto" class="no-padding form-control"/>
    </span>
</div>
